<div class="page page-current" id='deviceAdd'>
  <header class="bar bar-nav  bg-color">
  <a class="icon icon-left pull-left back cfff"></a>
    <h1 class="title device-title"></h1>
  </header>
<div class="content">
  <div class="list-block">
    <form id="device-add-form" method="post" accept-charset="utf-8" action="/devices/edit">
     <ul>
      <li>
        <div class="item-content">
          <div class="item-inner">
            <div class="item-title label"><span class="point">*</span>设备SN:</div>
            <div class="item-input">
              <input type="hidden" value="0" name="isadd" id="device-isadd"><!--这是个什么？ -->
              <input type="hidden"  class="input-nm" name="deviceSn" id="deviceSn" value="{{deviceSn}}"><!--这是个什么？ -->
              <input type="hidden"  class="input-nm" name="id" id="user-id" value="{{userId}}">
              <input type="text" class="input-nm" id="device-sn" name="sn" data-descriptions="sn" data-required="true" data-conditional="sn">
            </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
            <div class="item-title label"><span class="point">*</span>设备名称:</div>
            <div class="item-input">
              <input type="text" class="input-nm" id="device-name" name="name" data-descriptions="name" data-required="true" data-conditional="name">
            </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
           <div class="item-title label">所属业务名称:</div>
            <div class="col-lg-12 col-sm-12">
                <select class="form-control selectBusiness" id="device-businessid"  name="businessid" >
                  <option value=""  selected >请选择业务名称</option>
                </select>
            </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
              <div class="item-title label">IMEI:</div>
              <div class="item-input">
                <input type="text" class="input-nm" id="device-imei" name="imei" data-descriptions="imei" data-required="true" data-conditional="imei">
              </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
              <div class="item-title label">IMSI:</div>
              <div class="item-input">
               <input type="text" id="device-imsi" class="field-text" name="imsi"  data-validate="imsi" >

                <!-- <input type="text" class="input-nm" id="device-imsi" name="imsi" data-descriptions="imsi" data-conditional="imsi" > -->
              </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
              <div class="item-title label">位置:</div>
              <div class="item-input">
              <input type="text" id="device-location" class="field-text" name="location"  data-validate="location" >
                <!-- <input type="text" class="input-nm" id="device-location" name="location" data-descriptions="location" data-conditional="location"> -->
                <span style="color: #FB5651;margin-top: 4px;display: inline-block; font-size: 12px;">位置格式：**省**市**区濂水路7号闽江世纪城A区6栋503</span>
              </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
              <div class="item-title label">坐标:</div>
              <div class="item-input">
                <input type="text" id="device-coordinate" class="field-text" name="coordinate"  data-validate="coordinate" >
                <!-- <input type="text" class="input-nm" id="device-coordinate" name="coordinate" data-descriptions="coordinate" data-conditional="coordinate"> -->
                <span style="color: #FB5651;margin-top: 4px;display: inline-block; font-size: 12px;">坐标格式：119.302895,26.083804 其中119.302895代表经度,26.083804代表纬度</span>
              </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content form-group" style="display: none">
          <div class="item-inner">
           <div class="item-title label">COAP设备ID:</div>
            <div class="col-lg-12 col-sm-12">
                 <input type="text" id="device-coapid" class="field-text" name="coapid">
            </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content form-group" style="display: none">
          <div class="item-inner">
           <div class="item-title label">COAP加密码:</div>
            <div class="col-lg-12 col-sm-12">
                  <input type="text" id="device-coappsk" class="field-text" name="coappsk">
            </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
           <div class="item-title label">入网方式:</div>
            <div class="col-lg-12 col-sm-12">
                <select class="form-control selectNetwayid" id="device-netwayid"  name="netwayid" >
                  <option value=""  selected >请选择入网方式</option>
                </select>
            </div>
          </div>
        </div>
      </li>
      <li>
        <div class="item-content">
          <div class="item-inner">
            <div class="item-title label pl08">设备描述</div>
            <div class="item-input">
              <textarea name="info" data-descriptions="info" id="device-info-textarea" data-conditional="info"></textarea>
            </div>
          </div>
        </div>
      </li>
     </ul>
    <div class="content-block">
       <div class="row">
        <div class="col-50">
          <!-- <a href="#" class="button button-big button-fill button-danger" id="subform" ><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">取消</font></font></a> -->
        <input class="button button-big button-fill button-danger" type="button" value="取消">
        </div>
        <div class="col-50">
          <!-- <a href="#" class="button button-big button-fill button-success"  onclick="tosubmit()"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">提交</font></font></a> -->
        <input class="button button-big button-fill button-success" type="submit" value="提交">
        </div>
      </div>
    </div>
    </form>
  </div>

</div>
</div>
